3.5.65 \(\int \frac {(a+c x^2)^2}{(d+e x)^2} \, dx\) [465]

Optimal. Leaf size=94 \[ \frac {c \left (3 c d^2+2 a e^2\right ) x}{e^4}-\frac {c^2 d x^2}{e^3}+\frac {c^2 x^3}{3 e^2}-\frac {\left (c d^2+a e^2\right )^2}{e^5 (d+e x)}-\frac {4 c d \left (c d^2+a e^2\right ) \log (d+e x)}{e^5} \]

[Out]

c*(2*a*e^2+3*c*d^2)*x/e^4-c^2*d*x^2/e^3+1/3*c^2*x^3/e^2-(a*e^2+c*d^2)^2/e^5/(e*x+d)-4*c*d*(a*e^2+c*d^2)*ln(e*x
+d)/e^5

________________________________________________________________________________________

Rubi [A]
time = 0.05, antiderivative size = 94, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.059, Rules used = {711} \begin {gather*} -\frac {\left (a e^2+c d^2\right )^2}{e^5 (d+e x)}-\frac {4 c d \left (a e^2+c d^2\right ) \log (d+e x)}{e^5}+\frac {c x \left (2 a e^2+3 c d^2\right )}{e^4}-\frac {c^2 d x^2}{e^3}+\frac {c^2 x^3}{3 e^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + c*x^2)^2/(d + e*x)^2,x]

[Out]

(c*(3*c*d^2 + 2*a*e^2)*x)/e^4 - (c^2*d*x^2)/e^3 + (c^2*x^3)/(3*e^2) - (c*d^2 + a*e^2)^2/(e^5*(d + e*x)) - (4*c
*d*(c*d^2 + a*e^2)*Log[d + e*x])/e^5

Rule 711

Int[((d_) + (e_.)*(x_))^(m_)*((a_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[ExpandIntegrand[(d + e*x)^m*(a + c*
x^2)^p, x], x] /; FreeQ[{a, c, d, e, m}, x] && NeQ[c*d^2 + a*e^2, 0] && IGtQ[p, 0]

Rubi steps

\begin {align*} \int \frac {\left (a+c x^2\right )^2}{(d+e x)^2} \, dx &=\int \left (\frac {c \left (3 c d^2+2 a e^2\right )}{e^4}-\frac {2 c^2 d x}{e^3}+\frac {c^2 x^2}{e^2}+\frac {\left (c d^2+a e^2\right )^2}{e^4 (d+e x)^2}-\frac {4 c d \left (c d^2+a e^2\right )}{e^4 (d+e x)}\right ) \, dx\\ &=\frac {c \left (3 c d^2+2 a e^2\right ) x}{e^4}-\frac {c^2 d x^2}{e^3}+\frac {c^2 x^3}{3 e^2}-\frac {\left (c d^2+a e^2\right )^2}{e^5 (d+e x)}-\frac {4 c d \left (c d^2+a e^2\right ) \log (d+e x)}{e^5}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.04, size = 91, normalized size = 0.97 \begin {gather*} \frac {3 c e \left (3 c d^2+2 a e^2\right ) x-3 c^2 d e^2 x^2+c^2 e^3 x^3-\frac {3 \left (c d^2+a e^2\right )^2}{d+e x}-12 c d \left (c d^2+a e^2\right ) \log (d+e x)}{3 e^5} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + c*x^2)^2/(d + e*x)^2,x]

[Out]

(3*c*e*(3*c*d^2 + 2*a*e^2)*x - 3*c^2*d*e^2*x^2 + c^2*e^3*x^3 - (3*(c*d^2 + a*e^2)^2)/(d + e*x) - 12*c*d*(c*d^2
 + a*e^2)*Log[d + e*x])/(3*e^5)

________________________________________________________________________________________

Maple [A]
time = 0.42, size = 100, normalized size = 1.06

method result size
default \(\frac {c \left (\frac {1}{3} c \,e^{2} x^{3}-c d e \,x^{2}+2 a \,e^{2} x +3 c \,d^{2} x \right )}{e^{4}}-\frac {a^{2} e^{4}+2 a c \,d^{2} e^{2}+c^{2} d^{4}}{e^{5} \left (e x +d \right )}-\frac {4 c d \left (e^{2} a +c \,d^{2}\right ) \ln \left (e x +d \right )}{e^{5}}\) \(100\)
norman \(\frac {-\frac {a^{2} e^{4}+4 a c \,d^{2} e^{2}+4 c^{2} d^{4}}{e^{5}}+\frac {c^{2} x^{4}}{3 e}+\frac {2 c \left (e^{2} a +c \,d^{2}\right ) x^{2}}{e^{3}}-\frac {2 c^{2} d \,x^{3}}{3 e^{2}}}{e x +d}-\frac {4 c d \left (e^{2} a +c \,d^{2}\right ) \ln \left (e x +d \right )}{e^{5}}\) \(109\)
risch \(\frac {c^{2} x^{3}}{3 e^{2}}-\frac {c^{2} d \,x^{2}}{e^{3}}+\frac {2 c a x}{e^{2}}+\frac {3 c^{2} d^{2} x}{e^{4}}-\frac {a^{2}}{e \left (e x +d \right )}-\frac {2 a c \,d^{2}}{e^{3} \left (e x +d \right )}-\frac {c^{2} d^{4}}{e^{5} \left (e x +d \right )}-\frac {4 c d \ln \left (e x +d \right ) a}{e^{3}}-\frac {4 c^{2} d^{3} \ln \left (e x +d \right )}{e^{5}}\) \(126\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c*x^2+a)^2/(e*x+d)^2,x,method=_RETURNVERBOSE)

[Out]

c/e^4*(1/3*c*e^2*x^3-c*d*e*x^2+2*a*e^2*x+3*c*d^2*x)-(a^2*e^4+2*a*c*d^2*e^2+c^2*d^4)/e^5/(e*x+d)-4*c*d*(a*e^2+c
*d^2)*ln(e*x+d)/e^5

________________________________________________________________________________________

Maxima [A]
time = 0.29, size = 105, normalized size = 1.12 \begin {gather*} -4 \, {\left (c^{2} d^{3} + a c d e^{2}\right )} e^{\left (-5\right )} \log \left (x e + d\right ) + \frac {1}{3} \, {\left (c^{2} x^{3} e^{2} - 3 \, c^{2} d x^{2} e + 3 \, {\left (3 \, c^{2} d^{2} + 2 \, a c e^{2}\right )} x\right )} e^{\left (-4\right )} - \frac {c^{2} d^{4} + 2 \, a c d^{2} e^{2} + a^{2} e^{4}}{x e^{6} + d e^{5}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^2+a)^2/(e*x+d)^2,x, algorithm="maxima")

[Out]

-4*(c^2*d^3 + a*c*d*e^2)*e^(-5)*log(x*e + d) + 1/3*(c^2*x^3*e^2 - 3*c^2*d*x^2*e + 3*(3*c^2*d^2 + 2*a*c*e^2)*x)
*e^(-4) - (c^2*d^4 + 2*a*c*d^2*e^2 + a^2*e^4)/(x*e^6 + d*e^5)

________________________________________________________________________________________

Fricas [A]
time = 1.84, size = 139, normalized size = 1.48 \begin {gather*} \frac {9 \, c^{2} d^{3} x e - 3 \, c^{2} d^{4} + {\left (c^{2} x^{4} + 6 \, a c x^{2} - 3 \, a^{2}\right )} e^{4} - 2 \, {\left (c^{2} d x^{3} - 3 \, a c d x\right )} e^{3} + 6 \, {\left (c^{2} d^{2} x^{2} - a c d^{2}\right )} e^{2} - 12 \, {\left (c^{2} d^{3} x e + c^{2} d^{4} + a c d x e^{3} + a c d^{2} e^{2}\right )} \log \left (x e + d\right )}{3 \, {\left (x e^{6} + d e^{5}\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^2+a)^2/(e*x+d)^2,x, algorithm="fricas")

[Out]

1/3*(9*c^2*d^3*x*e - 3*c^2*d^4 + (c^2*x^4 + 6*a*c*x^2 - 3*a^2)*e^4 - 2*(c^2*d*x^3 - 3*a*c*d*x)*e^3 + 6*(c^2*d^
2*x^2 - a*c*d^2)*e^2 - 12*(c^2*d^3*x*e + c^2*d^4 + a*c*d*x*e^3 + a*c*d^2*e^2)*log(x*e + d))/(x*e^6 + d*e^5)

________________________________________________________________________________________

Sympy [A]
time = 0.22, size = 107, normalized size = 1.14 \begin {gather*} - \frac {c^{2} d x^{2}}{e^{3}} + \frac {c^{2} x^{3}}{3 e^{2}} - \frac {4 c d \left (a e^{2} + c d^{2}\right ) \log {\left (d + e x \right )}}{e^{5}} + x \left (\frac {2 a c}{e^{2}} + \frac {3 c^{2} d^{2}}{e^{4}}\right ) + \frac {- a^{2} e^{4} - 2 a c d^{2} e^{2} - c^{2} d^{4}}{d e^{5} + e^{6} x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x**2+a)**2/(e*x+d)**2,x)

[Out]

-c**2*d*x**2/e**3 + c**2*x**3/(3*e**2) - 4*c*d*(a*e**2 + c*d**2)*log(d + e*x)/e**5 + x*(2*a*c/e**2 + 3*c**2*d*
*2/e**4) + (-a**2*e**4 - 2*a*c*d**2*e**2 - c**2*d**4)/(d*e**5 + e**6*x)

________________________________________________________________________________________

Giac [A]
time = 0.99, size = 149, normalized size = 1.59 \begin {gather*} \frac {1}{3} \, {\left (c^{2} - \frac {6 \, c^{2} d}{x e + d} + \frac {6 \, {\left (3 \, c^{2} d^{2} e^{2} + a c e^{4}\right )} e^{\left (-2\right )}}{{\left (x e + d\right )}^{2}}\right )} {\left (x e + d\right )}^{3} e^{\left (-5\right )} + 4 \, {\left (c^{2} d^{3} + a c d e^{2}\right )} e^{\left (-5\right )} \log \left (\frac {{\left | x e + d \right |} e^{\left (-1\right )}}{{\left (x e + d\right )}^{2}}\right ) - {\left (\frac {c^{2} d^{4} e^{3}}{x e + d} + \frac {2 \, a c d^{2} e^{5}}{x e + d} + \frac {a^{2} e^{7}}{x e + d}\right )} e^{\left (-8\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^2+a)^2/(e*x+d)^2,x, algorithm="giac")

[Out]

1/3*(c^2 - 6*c^2*d/(x*e + d) + 6*(3*c^2*d^2*e^2 + a*c*e^4)*e^(-2)/(x*e + d)^2)*(x*e + d)^3*e^(-5) + 4*(c^2*d^3
 + a*c*d*e^2)*e^(-5)*log(abs(x*e + d)*e^(-1)/(x*e + d)^2) - (c^2*d^4*e^3/(x*e + d) + 2*a*c*d^2*e^5/(x*e + d) +
 a^2*e^7/(x*e + d))*e^(-8)

________________________________________________________________________________________

Mupad [B]
time = 0.06, size = 116, normalized size = 1.23 \begin {gather*} x\,\left (\frac {3\,c^2\,d^2}{e^4}+\frac {2\,a\,c}{e^2}\right )-\frac {\ln \left (d+e\,x\right )\,\left (4\,c^2\,d^3+4\,a\,c\,d\,e^2\right )}{e^5}+\frac {c^2\,x^3}{3\,e^2}-\frac {a^2\,e^4+2\,a\,c\,d^2\,e^2+c^2\,d^4}{e\,\left (x\,e^5+d\,e^4\right )}-\frac {c^2\,d\,x^2}{e^3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + c*x^2)^2/(d + e*x)^2,x)

[Out]

x*((3*c^2*d^2)/e^4 + (2*a*c)/e^2) - (log(d + e*x)*(4*c^2*d^3 + 4*a*c*d*e^2))/e^5 + (c^2*x^3)/(3*e^2) - (a^2*e^
4 + c^2*d^4 + 2*a*c*d^2*e^2)/(e*(d*e^4 + e^5*x)) - (c^2*d*x^2)/e^3

________________________________________________________________________________________